//
//  DB.h
//  HorizonLight
//
//  Created by lanou on 15/9/21.
//  Copyright (c) 2015年 lanou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "VideoListModel.h"
@interface DB : NSObject
//打开数据库
+ (sqlite3 *)open;
//关闭数据库
+ (void)close;
//根据表明获取数据库中保存的所有信息
+ (NSMutableArray *)allCacheOfDBTable:(NSString *)DBTable;
//插入视频
+ (void)insertCacheOfDBTable:(NSString *)DBTable WithModel:(VideoListModel *)model;
//删除指定ID下的视频
+ (void)deleteOfDBTable:(NSString *)DBTable ByID:(int)videoListID;


@end
